package com.xyoto.community.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author coderFu
 * @create 2021/10/3
 */
@ApiModel("全部动态列表的PO")
@Data
public class TotalDynamicListPO {

    @ApiModelProperty("自增id")
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("话题id")
    private Integer topicId;

    @ApiModelProperty("动态内容")
    private String  content;

    @ApiModelProperty("发布位置")
    private String  dynamicPlace;

    @ApiModelProperty("发布时间")
    private Date createTime;

    @ApiModelProperty("匿名用户id")
    private Integer anonymousUserId;

    @ApiModelProperty("匿名昵称")
    private String anonymousName;

    @ApiModelProperty("匿名头像地址")
    private String anonymousAvatarUrl;

    @ApiModelProperty("匿名状态")
    private Integer status;

    public TotalDynamicListPO() {

    }

    public TotalDynamicListPO(Integer id, Integer userId, Integer topicId, String content
            , String dynamicPlace, Date createTime, Integer anonymousUserId, String anonymousName
            , String anonymousAvatarUrl, Integer status) {
        this.id = id;
        this.userId = userId;
        this.topicId = topicId;
        this.content = content;
        this.dynamicPlace = dynamicPlace;
        this.createTime = createTime;
        this.anonymousUserId = anonymousUserId;
        this.anonymousName = anonymousName;
        this.anonymousAvatarUrl = anonymousAvatarUrl;
        this.status = status;
    }
}
